import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';

import { PermissionControlEntity } from '../permission-control/permission-control.entity';
import { RoleEntity } from '../role/role.entity';
import { PermissionController } from './permission.controller';
import { PermissionEntity } from './permission.entity';
import { PermissionService } from './permission.service';

@Module({
  imports: [
    TypeOrmModule.forFeature([PermissionEntity, RoleEntity, PermissionControlEntity]),
  ],
  controllers: [PermissionController],
  providers: [
    PermissionService,
  ],
})
export class PermissionModule {
}
